package com.sdkj.service.law;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.sdkj.dao.DaoSupport;
import com.sdkj.entity.Page;
import com.sdkj.util.PageData;

@Service("lawAskService")
public class LawAskService {
	

	@Resource(name = "daoSupport")
	private DaoSupport dao;

	public List<PageData> list(Page page) throws Exception{
		return (List<PageData>)dao.findForList("LawAskMapper.datalistPage", page);
	}

	public void save(PageData pd)throws Exception {
		dao.save("LawAskMapper.save", pd);
	}

	public PageData findById(PageData pd) throws Exception{
		return (PageData) dao.findForObject("LawAskMapper.findById", pd);
	}

	public void saveAs(PageData pd2) throws Exception{
		dao.save("LawAskMapper.saveAs", pd2);
	}

	public void updateAsk(PageData pd)throws Exception {
		dao.update("LawAskMapper.updateAsk", pd);
		
	}
	
	

}
